package com.framework.tools;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.framework.persist.ORMapper;

public class DBProcedureORMapper implements ORMapper{

	public DBProcedure mapRow(ResultSet rs, int rowNum) throws SQLException {
		DBProcedure procedure = new DBProcedure();
		procedure.setCat(rs.getString("PROCEDURE_CAT"));
		procedure.setSchem(rs.getString("PROCEDURE_SCHEM"));
		procedure.setName(rs.getString("PROCEDURE_NAME"));
		procedure.setDesc(rs.getString("REMARKS"));
		procedure.setType(rs.getShort("PROCEDURE_TYPE"));
		return procedure;
	}

}
